<%@ taglib prefix="s" uri="/struts-tags"%>

<s:if test="timeOffApproved">
	<div class="right">
		<s:hidden key="actionMethod" value="TimeOffAction_edit"/>
		<s:url id="edit_action" action="TimeOffAction_edit" includeParams="all"/>
		<s:a href="%{edit_action}" cssClass="Add">Edit</s:a>
	</div>
</s:if>
<s:if test="changeStatusAllowed" >
	<div class="right">
		<s:hidden key="actionMethod" value="TimeOffAction_changeStatus"/>
		<s:url id="changeStatus_action" action="TimeOffAction_changeStatus" includeParams="all"/>
		<s:a href="%{changeStatus_action}" cssClass="Add">Change Status</s:a>
	</div>
</s:if>
<s:if test="readOnly">
	<div class="right">
	<s:if test="hasPermission(permissionNameConverter.getViewTimeOffHistoryPermission())" >
		<s:url id="listTOSDetails_action" action="TimeOffStatusDetailsAction" >
		 	<s:param name="requestId" value="%{model.Id}" />
		</s:url>
		<s:a href="%{listTOSDetails_action}" cssClass="Add">Time Off History</s:a>
	</s:if>
	</div>
</s:if>